
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Gitbook · GitBook笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="chenjiebin">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="linux.html" />
    
    
    <link rel="prev" href="nodejs.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../document/kubernetes/kubernetes.html">
            
                <a href="../document/kubernetes/kubernetes.html">
            
                    
                    Kubernetes英文教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../document/kubernetes/kubernetes.html">
            
                <a href="../document/kubernetes/kubernetes.html#concepts">
            
                    
                    Kubernetes Concepts
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="../document/kubernetes/concepts/overview.html">
            
                <a href="../document/kubernetes/concepts/overview.html">
            
                    
                    Kubernetes Overview
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="../document/kubernetes/concepts/components.html">
            
                <a href="../document/kubernetes/concepts/components.html">
            
                    
                    Kubernetes Components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="../document/kubernetes/concepts/nodes.html">
            
                <a href="../document/kubernetes/concepts/nodes.html">
            
                    
                    Kubernetes Nodes
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../document/kubernetes/kubernetes.html">
            
                <a href="../document/kubernetes/kubernetes.html#tutorial">
            
                    
                    Kubernetes Tutorial
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="../document/kubernetes/tutorial/kubernetes-basics.html">
            
                <a href="../document/kubernetes/tutorial/kubernetes-basics.html">
            
                    
                    Kubernetes Basics
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../java/java.html">
            
                <a href="../java/java.html">
            
                    
                    Java基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../java/java-summary.html">
            
                <a href="../java/java-summary.html">
            
                    
                    Java_Summary
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../java/java-jvm.html">
            
                <a href="../java/java-jvm.html">
            
                    
                    Java_JVM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../java/effectiveJava.html">
            
                <a href="../java/effectiveJava.html">
            
                    
                    effectiveJava
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../java/design-pattern.html">
            
                <a href="../java/design-pattern.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../java/JavaTest.html">
            
                <a href="../java/JavaTest.html">
            
                    
                    JavaTest
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../java/myframe.html">
            
                <a href="../java/myframe.html">
            
                    
                    MyFrame
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../database/database.html">
            
                <a href="../database/database.html">
            
                    
                    数据库基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../database/mysql.html">
            
                <a href="../database/mysql.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../database/redis.html">
            
                <a href="../database/redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../database/kingbase.html">
            
                <a href="../database/kingbase.html">
            
                    
                    KingBase
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../database/polardb.html">
            
                <a href="../database/polardb.html">
            
                    
                    PolarDB
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="system.html">
            
                <a href="system.html">
            
                    
                    环境配置工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="nodejs.html">
            
                <a href="nodejs.html">
            
                    
                    Node.js
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.2" data-path="gitbook.html">
            
                <a href="gitbook.html">
            
                    
                    Gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="linux.html">
            
                <a href="linux.html">
            
                    
                    Linux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="kylin.html">
            
                <a href="kylin.html">
            
                    
                    麒麟系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../tool/tool.html">
            
                <a href="../tool/tool.html">
            
                    
                    开发工具介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../tool/docker.html">
            
                <a href="../tool/docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../tool/idea.html">
            
                <a href="../tool/idea.html">
            
                    
                    Idea
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../tool/maven.html">
            
                <a href="../tool/maven.html">
            
                    
                    Maven
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../tool/gradle.html">
            
                <a href="../tool/gradle.html">
            
                    
                    Gradle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../framework/kubernate.html">
            
                <a href="../framework/kubernate.html">
            
                    
                    Kubernetes
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >Gitbook</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#gitbook"><b>1. </b>GitBook</a></li><ul><li><span class="title-icon "></span><a href="#gitbook&#x57FA;&#x672C;&#x8BED;&#x6CD5;"><b>1.1. </b>Gitbook&#x57FA;&#x672C;&#x8BED;&#x6CD5;</a></li><li><span class="title-icon "></span><a href="#gitbook&#x4F7F;&#x7528;&#x63D2;&#x4EF6;"><b>1.2. </b>Gitbook&#x4F7F;&#x7528;&#x63D2;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#gitbook&#x4EE3;&#x7801;&#x6258;&#x7BA1;"><b>1.3. </b>Gitbook&#x4EE3;&#x7801;&#x6258;&#x7BA1;</a></li><li><span class="title-icon "></span><a href="#gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;"><b>1.4. </b>Gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;</a></li><li><span class="title-icon "></span><a href="#&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x5904;&#x7406;"><b>1.5. </b>&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x5904;&#x7406;</a></li><li><span class="title-icon "></span><a href="#&#x53C2;&#x8003;&#x4FE1;&#x606F;"><b>1.6. </b>&#x53C2;&#x8003;&#x4FE1;&#x606F;</a></li></ul></ul></div><a href="#gitbook" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="gitbook"><a name="gitbook" class="anchor-navigation-ex-anchor" href="#gitbook"><i class="fa fa-link" aria-hidden="true"></i></a>1. GitBook</h1>
<p>GitBook&#x662F;&#x4E00;&#x4E2A;&#x57FA;&#x4E8E;Node.js&#x7684;&#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#xFF0C;&#x53EF;&#x4F7F;&#x7528;Github/Git&#x548C;Markdown&#x5236;&#x4F5C;&#x7535;&#x5B50;&#x4E66;</p>
<p>GitBook&#x652F;&#x6301;&#x8F93;&#x51FA;&#x591A;&#x79CD;&#x6587;&#x6863;&#x683C;&#x5F0F;&#xFF1A;&#x9759;&#x6001;&#x7AD9;&#x70B9;&#x3001;PDF&#x3001;eBook&#x3001;&#x5355;HTML&#x7F51;&#x9875;&#x3001;JSON</p>
<blockquote>
<p>gitbook polyfills.js &#x62A5;&#x9519;</p>
</blockquote>
<p>&#x5C06; 62-64 &#x884C;&#x5BF9; statFix &#x65B9;&#x6CD5;&#x7684;&#x8C03;&#x7528;&#x6CE8;&#x91CA;&#x6389;&#x5373;&#x53EF;</p>
<blockquote>
<p>nodejs &#x7248;&#x672C;</p>
</blockquote>
<p>&#x4E0E; gitbook &#x517C;&#x5BB9;&#x7684;&#x7A33;&#x5B9A;&#x7248;&#x672C;&#x662F; v12.18.3</p>
<p>&#x4F7F;&#x7528; nvm &#x5207;&#x6362; nodejs &#x5230; v12.18.3 &#x7248;&#x672C;&#x5373;&#x53EF;</p>
<p>&#x5B89;&#x88C5;&#x524D;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x6DD8;&#x5B9D;&#x955C;&#x50CF;&#xFF0C;&#x52A0;&#x5FEB;&#x901F;&#x5EA6;</p>
<h2 id="gitbook&#x57FA;&#x672C;&#x8BED;&#x6CD5;"><a name="gitbook&#x57FA;&#x672C;&#x8BED;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#gitbook&#x57FA;&#x672C;&#x8BED;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. Gitbook&#x57FA;&#x672C;&#x8BED;&#x6CD5;</h2>
<pre class="language-"><code class="lang-bash"><span class="token comment"># 1.gitbook&#x5168;&#x5C40;&#x5B89;&#x88C5;</span>
<span class="token function">npm</span> config get registry
<span class="token function">npm</span> config <span class="token builtin class-name">set</span> <span class="token assign-left variable">registry</span><span class="token operator">=</span>https://registry.npmmirror.com/ <span class="token parameter variable">-g</span>
<span class="token function">npm</span> <span class="token function">install</span> gitbook-cli <span class="token parameter variable">-g</span>
<span class="token comment"># &#x5F00;&#x653E;&#x811A;&#x672C;&#x6743;&#x9650;</span>
<span class="token comment"># &#x7BA1;&#x7406;&#x5458;&#x8FD0;&#x884C;powershell&#xFF0C;&#x8FD0;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x5E76;&#x8F93;&#x5165; RemoteSigned</span>
<span class="token comment"># &#x9A8C;&#x8BC1; get-ExecutionPolicy</span>
Set-ExecutionPolicy <span class="token parameter variable">-Scope</span> CurrentUser
<span class="token comment"># 2.gitbook&#x521D;&#x59CB;&#x5316;&#x9879;&#x76EE;</span>
gitbook init
<span class="token comment"># 3.gitbook&#x5B89;&#x88C5;&#x63D2;&#x4EF6;</span>
gitbook <span class="token function">install</span>
<span class="token comment"># 4.gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;</span>
gitbook serve
<span class="token comment"># 5.gitbook&#x6253;&#x5305;&#x9879;&#x76EE;</span>
gitbook build
<span class="token comment"># 6.gitbook&#x67E5;&#x770B;&#x7248;&#x672C;</span>
gitbook <span class="token parameter variable">-V</span>
</code></pre>
<h2 id="gitbook&#x4F7F;&#x7528;&#x63D2;&#x4EF6;"><a name="gitbook&#x4F7F;&#x7528;&#x63D2;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#gitbook&#x4F7F;&#x7528;&#x63D2;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. Gitbook&#x4F7F;&#x7528;&#x63D2;&#x4EF6;</h2>
<p>&#x4F7F;&#x7528;&#x63D2;&#x4EF6;&#x9700;&#x8981;&#x5728;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x6DFB;&#x52A0;book.json&#x6587;&#x4EF6;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;title&quot;</span><span class="token operator">:</span> <span class="token string">&quot;GitBook&#x7B14;&#x8BB0;&quot;</span><span class="token punctuation">,</span>
  <span class="token property">&quot;author&quot;</span><span class="token operator">:</span> <span class="token string">&quot;chenjiebin&quot;</span><span class="token punctuation">,</span>
  <span class="token property">&quot;description&quot;</span><span class="token operator">:</span> <span class="token string">&quot;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;&#xFF0C;&#x5305;&#x542B;&#x524D;&#x540E;&#x7AEF;&#x57FA;&#x7840;&#x77E5;&#x8BC6;&#x53CA;&#x6846;&#x67B6;&#x7684;&#x5B66;&#x4E60;&#x7B14;&#x8BB0;&quot;</span><span class="token punctuation">,</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;theme-default&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;prism&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-highlight&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;search-pro&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-search&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-lunr&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;expandable-chapters-small&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;splitter&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-sharing&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;anchor-navigation-ex&quot;</span>
  <span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token property">&quot;pluginConfig&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token property">&quot;prism&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;css&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
        <span class="token string">&quot;prismjs/themes/prism-solarizedlight.css&quot;</span>
      <span class="token punctuation">]</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token property">&quot;anchor-navigation-ex&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;showLevel&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token property">&quot;theme-default&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;toggleMenu&quot;</span><span class="token operator">:</span> <span class="token boolean">false</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x7EDF;&#x4E00;&#x5B89;&#x88C5;&#x63D2;&#x4EF6;</p>
</blockquote>
<pre class="language-"><code>gitbook install
</code></pre><blockquote>
<p>&#x5355;&#x72EC;&#x5B89;&#x88C5;&#x63D2;&#x4EF6;xxx</p>
</blockquote>
<pre class="language-"><code class="lang-shell"><span class="token function">npm</span> <span class="token function">install</span> gitbook-plugin-xxx
</code></pre>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;prism</p>
</blockquote>
<p>&#x4E3A;gitbook&#x7684;code&#x6DFB;&#x52A0;&#x66F4;&#x597D;&#x770B;&#x7684;&#x9AD8;&#x4EAE;&#x6837;&#x5F0F;&#xFF0C;&#x4F7F;&#x7528;&#x65F6;&#x9700;&#x8981;&#x5C4F;&#x853D;gitbook&#x9ED8;&#x8BA4;&#x7684;highlight&#x63D2;&#x4EF6;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;prism&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-highlight&quot;</span>
  <span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token property">&quot;pluginConfig&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token property">&quot;prism&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;css&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">&quot;prismjs/themes/prism-solarizedlight.css&quot;</span><span class="token punctuation">]</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token property">&quot;anchor-navigation-ex&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;showLevel&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;search-pro</p>
</blockquote>
<p>gitbook&#x9ED8;&#x8BA4;&#x641C;&#x7D22;&#x5BF9;&#x4E2D;&#x6587;&#x4E0D;&#x53CB;&#x597D;&#xFF0C;&#x66F4;&#x6362;&#x4E3A;search-pro&#xFF0C;&#x540C;&#x65F6;&#x5C4F;&#x853D;&#x9ED8;&#x8BA4;&#x641C;&#x7D22;search&#x548C;lunr</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;search-pro&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-search&quot;</span><span class="token punctuation">,</span>
    <span class="token string">&quot;-lunr&quot;</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;chapter-fold</p>
</blockquote>
<p>gitbook&#x9ED8;&#x8BA4;&#x4FA7;&#x8FB9;&#x680F;&#x5168;&#x90E8;&#x5C55;&#x5F00;&#xFF0C;&#x6B64;&#x63D2;&#x4EF6;&#x6DFB;&#x52A0;&#x6536;&#x7F29;&#x529F;&#x80FD;&#xFF0C;&#x70B9;&#x51FB;&#x6807;&#x9898;&#x540D;&#x5C31;&#x53EF;&#x5B9E;&#x73B0;&#x6298;&#x53E0;&#x5C55;&#x5F00;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;chapter-fold&quot;</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x60F3;&#x8981;&#x76EE;&#x5F55;&#x6298;&#x53E0;&#xFF0C;SUMMARY.md&#x76EE;&#x5F55;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre class="language-"><code>* [&#x9879;&#x76EE;&#x4ECB;&#x7ECD;](README.md)

* [&#x76EE;&#x5F55;&#x4E00;](doc/menu1.md)
    * [&#x5185;&#x5BB9;&#x4E00;](doc/menu1/text1.md)
* [&#x76EE;&#x5F55;&#x4E8C;](doc/menu2.md)
    * [&#x5185;&#x5BB9;&#x4E8C;](doc/menu2/text2.md)
</code></pre><p>&#x5982;&#x4E0B;&#x5199;&#x6CD5;&#x9ED8;&#x8BA4;&#x6536;&#x7F29;&#x4E14;&#x4E0D;&#x80FD;&#x5C55;&#x5F00;</p>
<pre class="language-"><code>* CSS
    * [&#x8BF4;&#x660E;](doc/text.md)
</code></pre><blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;expandable-chapters</p>
</blockquote>
<p>gitbook&#x9ED8;&#x8BA4;&#x4FA7;&#x8FB9;&#x680F;&#x5168;&#x90E8;&#x5C55;&#x5F00;&#xFF0C;&#x6B64;&#x63D2;&#x4EF6;&#x6DFB;&#x52A0;&#x6536;&#x7F29;&#x529F;&#x80FD;&#xFF0C;&#x9700;&#x8981;&#x70B9;&#x51FB;&#x7BAD;&#x5934;&#x624D;&#x80FD;&#x5B9E;&#x73B0;&#x6298;&#x53E0;&#x5C55;&#x5F00;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;expandable-chapters&quot;</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre>
<p>expandable-chapters&#x53EF;&#x4EE5;&#x89E3;&#x51B3;chapter-fold&#x63D2;&#x4EF6;&#x7684;bug&#xFF0C;&#x4F46;&#x662F;&#x5982;&#x4E0B;&#x5199;&#x6CD5;&#x9700;&#x8981;&#x70B9;&#x51FB;&#x7BAD;&#x5934;&#x624D;&#x80FD;&#x5C55;&#x5F00;</p>
<pre class="language-"><code>* [&#x76EE;&#x5F55;&#x4E00;](doc/menu1.md)
    * [&#x5185;&#x5BB9;&#x4E00;](doc/menu1/text1.md)
</code></pre><p>&#x89E3;&#x51B3;&#x529E;&#x6CD5;&#x662F;&#x4F7F;&#x7528;chapter-fold&#x548C;expandable-chapters&#x4E24;&#x4E2A;&#x63D2;&#x4EF6;</p>
<p>expandable-chapters-small&#x4E5F;&#x662F;&#x6298;&#x53E0;&#x83DC;&#x5355;&#xFF0C;&#x7BAD;&#x5934;&#x8F83;&#x7EC6;&#xFF0C;&#x8DDF;chapter-fold&#x6709;&#x540C;&#x6837;&#x7684;&#x95EE;&#x9898;</p>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;splitter</p>
</blockquote>
<p>&#x8BA9;&#x4FA7;&#x8FB9;&#x680F;&#x7684;&#x5BBD;&#x5EA6;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x62D6;&#x52A8;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;splitter&quot;</span>
  <span class="token punctuation">]</span>
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;-sharing</p>
</blockquote>
<p>&#x5173;&#x95ED;gitbook&#x9ED8;&#x8BA4;&#x7684;&#x5206;&#x4EAB;&#x529F;&#x80FD;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;-sharing&quot;</span>
  <span class="token punctuation">]</span> 
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;anchor-navigation-ex</p>
</blockquote>
<p>&#x81EA;&#x52A8;&#x751F;&#x6210;&#x83DC;&#x5355;&#xFF0C;&#x5E76;&#x6DFB;&#x52A0;&#x8DF3;&#x8F6C;&#x5230;&#x9876;&#x90E8;&#x6548;&#x679C;</p>
<pre class="language-"><code class="lang-json"><span class="token punctuation">{</span>
  <span class="token property">&quot;plugins&quot;</span><span class="token operator">:</span> <span class="token punctuation">[</span>
    <span class="token string">&quot;anchor-navigation-ex&quot;</span>
  <span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token property">&quot;pluginConfig&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
    <span class="token property">&quot;anchor-navigation-ex&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token property">&quot;showLevel&quot;</span><span class="token operator">:</span> <span class="token boolean">true</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span> 
<span class="token punctuation">}</span>
</code></pre>
<blockquote>
<p>&#x63D2;&#x4EF6;&#xFF1A;pdf</p>
</blockquote>
<p>&#x8F93;&#x51FA;&#x4E3A;PDF&#x6587;&#x4EF6;&#xFF0C;&#x9700;&#x8981;&#x5148;&#x5B89;&#x88C5;pdf&#x63D2;&#x4EF6;</p>
<pre class="language-"><code>npm install gitbook-pdf -g
</code></pre><p>&#x5B89;&#x88C5;&#x540E;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x547D;&#x4EE4;&#x751F;&#x6210;PDF&#x6587;&#x6863;</p>
<pre class="language-"><code>gitbook pdf
</code></pre><h2 id="gitbook&#x4EE3;&#x7801;&#x6258;&#x7BA1;"><a name="gitbook&#x4EE3;&#x7801;&#x6258;&#x7BA1;" class="anchor-navigation-ex-anchor" href="#gitbook&#x4EE3;&#x7801;&#x6258;&#x7BA1;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. Gitbook&#x4EE3;&#x7801;&#x6258;&#x7BA1;</h2>
<p>&#x521B;&#x5EFA;git&#x4ED3;&#x5E93;&#x524D;&#x9700;&#x8981;&#x5FFD;&#x7565;&#x672C;&#x5730;&#x4F9D;&#x8D56;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x6DFB;&#x52A0;.gitignore&#x6587;&#x4EF6;</p>
<pre class="language-"><code>node_modules/
</code></pre><blockquote>
<p>&#x4EE3;&#x7801;&#x6258;&#x7BA1;</p>
</blockquote>
<pre class="language-"><code class="lang-shell"><span class="token comment"># 1.gitbook&#x6253;&#x5305;&#x9879;&#x76EE;</span>
gitbook build
<span class="token comment"># 2.git&#x65B0;&#x5EFA;&#x4ED3;&#x5E93;</span>
<span class="token function">git</span> init
<span class="token comment"># 3.git&#x6DFB;&#x52A0;&#x6587;&#x4EF6;</span>
<span class="token function">git</span> <span class="token function">add</span> <span class="token builtin class-name">.</span>
<span class="token comment"># 4.git&#x63D0;&#x4EA4;&#x8BB0;&#x5F55;</span>
<span class="token function">git</span> commit <span class="token parameter variable">-m</span> <span class="token string">&quot;&#x6587;&#x5B57;&#x8BF4;&#x660E;&quot;</span>
<span class="token comment"># 5.gitee&#x521B;&#x5EFA;&#x4ED3;&#x5E93;</span>
<span class="token comment"># 6.git&#x5173;&#x8054;&#x4ED3;&#x5E93;</span>
<span class="token function">git</span> remote <span class="token function">add</span> orgin https://gitee.com/xxx/xxx.git
<span class="token comment"># 7.git&#x63A8;&#x9001;&#x4EE3;&#x7801;</span>
<span class="token function">git</span> push <span class="token parameter variable">-u</span> orgin master
</code></pre>
<p><img src="../images/gitbook/addRepository.png" alt="&#x521B;&#x5EFA;&#x4ED3;&#x5E93;"></p>
<h2 id="gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;"><a name="gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;" class="anchor-navigation-ex-anchor" href="#gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. Gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;</h2>
<p><img src="../images/gitbook/gitPages.png" alt="gitbook&#x5F00;&#x542F;&#x670D;&#x52A1;"></p>
<p>&#x5F00;&#x542F;&#x670D;&#x52A1;&#x540E;&#x70B9;&#x51FB;&#x7F51;&#x7AD9;&#x94FE;&#x63A5;&#x5373;&#x53EF;&#x67E5;&#x770B;&#x6587;&#x6863;</p>
<h2 id="&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x5904;&#x7406;"><a name="&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x5904;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x5904;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. &#x5E38;&#x89C1;&#x95EE;&#x9898;&#x5904;&#x7406;</h2>
<blockquote>
<p> <strong>unexpected token: .</strong> &#x5904;&#x7406;&#x65B9;&#x6CD5;</p>
</blockquote>
<p><a href="https://blog.csdn.net/HammerTien/article/details/86613392" target="_blank">https://blog.csdn.net/HammerTien/article/details/86613392</a></p>
<p>&#x5728;md&#x6587;&#x4EF6;&#x5934;&#x5C3E;&#x5206;&#x522B;&#x52A0;&#x4E0A;&#x6807;&#x5FD7;&#xFF0C;gitbook&#x4F1A;&#x5FFD;&#x7565;</p>
<pre class="language-"><code class="lang-text">

    &#x6B63;&#x6587;&#x5185;&#x5BB9;...
</code></pre>
<blockquote>
<p>Failed to load prism syntax: mysql</p>
</blockquote>
<p><a href="https://github.com/rootsongjc/kubernetes-handbook/issues/221" target="_blank">https://github.com/rootsongjc/kubernetes-handbook/issues/221</a></p>
<p>&#x8FD9;&#x4E2A;&#x62A5;&#x9519;&#x662F;&#x56E0;&#x4E3A;&#x4F7F;&#x7528;&#x4E86;gitbook&#x4E0D;&#x652F;&#x6301;&#x7684;&#x4EE3;&#x7801;&#x5757;&#x89E3;&#x6790;&#x683C;&#x5F0F;</p>
<p>gitbook&#x652F;&#x6301;&#x7684;&#x4EE3;&#x7801;&#x5757;&#x89E3;&#x6790;&#x5757;&#x5728; <code>./node_modules/prismjs/components</code> &#x4E0B;</p>
<p>&#x5C06;&#x5BF9;&#x5E94;&#x7684;&#x4EE3;&#x7801;&#x5757;&#x4FEE;&#x6539;&#x4E3A;&#x53EF;&#x7F16;&#x8BD1;&#x7684;&#x8BED;&#x6CD5;&#x5373;&#x53EF;</p>
<p>&#x5C06; shell &#x4EE3;&#x7801;&#x6A21;&#x5757;&#x6539;&#x4E3A; bash &#xFF0C;&#x56E0;&#x4E3A; prism &#x6CA1;&#x6709; prism-shell &#x89E3;&#x6790; </p>
<h2 id="&#x53C2;&#x8003;&#x4FE1;&#x606F;"><a name="&#x53C2;&#x8003;&#x4FE1;&#x606F;" class="anchor-navigation-ex-anchor" href="#&#x53C2;&#x8003;&#x4FE1;&#x606F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. &#x53C2;&#x8003;&#x4FE1;&#x606F;</h2>
<p><a href="https://yangjh.gitee.io/gitbook/" target="_blank">gitbook&#x53C2;&#x8003;&#x6587;&#x6863;</a></p>
<p><a href="https://zhuanlan.zhihu.com/p/34946169" target="_blank">https://zhuanlan.zhihu.com/p/34946169</a></p>
<p><a href="https://juejin.cn/post/6844903865146441741" target="_blank">https://juejin.cn/post/6844903865146441741</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="nodejs.html" class="navigation navigation-prev " aria-label="Previous page: Node.js">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="linux.html" class="navigation navigation-next " aria-label="Next page: Linux">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Gitbook","level":"1.5.2","depth":2,"next":{"title":"Linux","level":"1.5.3","depth":2,"path":"markdown/system/linux.md","ref":"markdown/system/linux.md","articles":[]},"previous":{"title":"Node.js","level":"1.5.1","depth":2,"path":"markdown/system/nodejs.md","ref":"markdown/system/nodejs.md","articles":[]},"dir":"ltr"},"config":{"plugins":["theme-default","prism","-highlight","search-pro","-search","-lunr","expandable-chapters-small","splitter","-sharing","anchor-navigation-ex","code"],"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"},"pluginsConfig":{"prism":{},"search-pro":{},"expandable-chapters-small":{},"splitter":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"showLevel":false,"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}},"theme":"default","author":"chenjiebin","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pluginConfig":{"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"anchor-navigation-ex":{"showLevel":true},"theme-default":{"toggleMenu":false}},"variables":{},"title":"GitBook笔记","gitbook":"*","description":"学习笔记，包含前后端基础知识及框架的学习笔记"},"file":{"path":"markdown/system/gitbook.md","mtime":"2023-12-29T01:27:40.257Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-02-28T09:32:04.838Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

